<?php

use Doctrine\ORM\Mapping\ClassMetadataInfo;

$metadata->setInheritanceType(ClassMetadataInfo::INHERITANCE_TYPE_NONE);
$metadata->setPrimaryTable(array(
   'name' => 'dict',
   'indexes' => 
   array(
   'idx_d_value' => 
   array(
    'columns' => 
    array(
    0 => 'd_value',
    ),
   ),
   'idx_type_key' => 
   array(
    'columns' => 
    array(
    0 => 'type',
    1 => 'd_key',
    ),
   ),
   'idx_u_key' => 
   array(
    'columns' => 
    array(
    0 => 'u_key',
    ),
   ),
   ),
  ));
$metadata->setChangeTrackingPolicy(ClassMetadataInfo::CHANGETRACKING_DEFERRED_IMPLICIT);
$metadata->mapField(array(
   'fieldName' => 'id',
   'columnName' => 'id',
   'type' => 'integer',
   'nullable' => false,
   'options' => 
   array(
   'unsigned' => false,
   'comment' => ' 主键 ',
   ),
   'id' => true,
  ));
$metadata->mapField(array(
   'fieldName' => 'type',
   'columnName' => 'type',
   'type' => 'string',
   'nullable' => false,
   'length' => 255,
   'options' => 
   array(
   'fixed' => false,
   'comment' => '字典名称',
   ),
  ));
$metadata->mapField(array(
   'fieldName' => 'dKey',
   'columnName' => 'd_key',
   'type' => 'string',
   'nullable' => false,
   'length' => 255,
   'options' => 
   array(
   'fixed' => false,
   ),
  ));
$metadata->mapField(array(
   'fieldName' => 'dValue',
   'columnName' => 'd_value',
   'type' => 'string',
   'nullable' => false,
   'length' => 255,
   'options' => 
   array(
   'fixed' => false,
   ),
  ));
$metadata->mapField(array(
   'fieldName' => 'uKey',
   'columnName' => 'u_key',
   'type' => 'string',
   'nullable' => false,
   'length' => 255,
   'options' => 
   array(
   'fixed' => false,
   'comment' => '唯一标识',
   ),
  ));
$metadata->mapField(array(
   'fieldName' => 'remark',
   'columnName' => 'remark',
   'type' => 'string',
   'nullable' => false,
   'length' => 255,
   'options' => 
   array(
   'fixed' => false,
   'comment' => '备注',
   ),
  ));
$metadata->mapField(array(
   'fieldName' => 'isDel',
   'columnName' => 'is_del',
   'type' => 'integer',
   'nullable' => true,
   'options' => 
   array(
   'unsigned' => false,
   'comment' => '0否1是',
   ),
  ));
$metadata->mapField(array(
   'fieldName' => 'createUser',
   'columnName' => 'create_user',
   'type' => 'integer',
   'nullable' => false,
   'options' => 
   array(
   'unsigned' => false,
   'comment' => ' 添加人 ',
   ),
  ));
$metadata->mapField(array(
   'fieldName' => 'updateUser',
   'columnName' => 'update_user',
   'type' => 'integer',
   'nullable' => false,
   'options' => 
   array(
   'unsigned' => false,
   'comment' => ' 修改人 ',
   ),
  ));
$metadata->mapField(array(
   'fieldName' => 'createTime',
   'columnName' => 'create_time',
   'type' => 'integer',
   'nullable' => false,
   'options' => 
   array(
   'unsigned' => false,
   'comment' => ' 添加时间 ',
   ),
  ));
$metadata->mapField(array(
   'fieldName' => 'updateTime',
   'columnName' => 'update_time',
   'type' => 'integer',
   'nullable' => false,
   'options' => 
   array(
   'unsigned' => false,
   'comment' => ' 修改时间 ',
   ),
  ));
$metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_IDENTITY);